package org.acme.cluster.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.acme.cluster.po.SysSms;
import org.jgroups.Address;

import java.util.List;

public interface SysSmsService extends IService<SysSms> {

    public List<SysSms> findByServerKey(String serverKey, List<String> excludeIds);

    public boolean sendSms(SysSms sysSms);

    public boolean addSms(SysSms sysSms);

    public boolean addSmsBatch(List<SysSms> sysSmsList) throws Exception;

    public int getMaxRetryCount();

    public void updateSmsStatusToAll(List<Address> activeServers, Address currentServer, List<Address> failedServers);

    public void updateAllSmsServerKey(String serverKey);
}
